package org.dbrd.detector.tfidf;

import java.util.HashMap;
import java.util.Map;

@Deprecated
public class IDFItemCollection {

	private Map<String, IDFItem> items;
	
	public IDFItemCollection() {
		this.items = new HashMap<String, IDFItem>();
	}
	
	public IDFItem addIDFItem(String string) {
		IDFItem item = this.items.get(string);
		if (item == null) {
			item = new IDFItem(string);
			this.items.put(string, item);
		}
		item.increaseFrequence();
		return item;
	}
	
}
